﻿using System;
using PetaPoco;

namespace QDSpider.Models
{
    [TableName("vifo_article")]
    public class Article
    {
        public int Id { get; set; }
        public string Title { get; set; } = "";
        public string Logo { get; set; } = "";
        public string Content { get; set; } = "";
        public int State { get; set; } = 0;
        public string Source { get; set; } = "";
        public int SourceId { get; set; } = 20;
        public string HtmlUrl { get; set; } = "";

        [Column("html_date")]
        public string HtmlDate { get; set; } = "";

        [Column("push_count")]
        public int PushCount { get; set; } = 0;
        [Column("tag_name")]
        public string TagName { get; set; } = "";

        [Column("tag_id")]
        public int TagId { get; set; } = 0;

        [Column("read_num")]
        public int ReadNum { get; set; } = 0;

        [Column("like_num")]
        public int LikeNum { get; set; } = 0;
        public DateTime Date { get; set; }=new DateTime(1900,1,1);
        public bool CopyRight { get; set; } = false;

        [Column("create_userid")]
        public int CreateUserId { get; set; } = 0;
        [Column("create_username")]
        public string CreateUserName { get; set; } = "";
    }
}
